import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import "/src/components/vant-quanju/index.js"  //vant全局组件
import "@/common/iconfont"


// 笨方法
// import axios from 'axios';
// axios.defaults.baseURL="https://d33a5037-6c63-4e92-8bb1-30018ab701ea.bspapp.com/http";
// Vue.prototype.$http=axios;


// 混入
import mixin from '@/common/mixins'
Vue.mixin(mixin)


Vue.prototype.$Bus=new Vue()

import init from './common/init'
const app = new Vue({
  router,
  store,
  render: h => h(App)
})

init().then(res=>{
  app.$mount('#app')
}).catch(err=>{
  app.$mount('#app') 
})
